<template>
    <el-config-provider :locale="localeLang">
        <router-view></router-view>
    </el-config-provider>
</template>

<script setup lang="ts" name="App">
import { ref, computed } from 'vue';
import { zhCn, en } from 'element-plus/es/locales';

const language = ref('zh-cn')
const localeLang = computed(() => (language.value === 'zh-cn' ? zhCn : en))

</script>

<style lang="scss" scoped></style>